import express from 'express';

const router = express.Router();
import {UserLoginDTO, UserRegisterDTO} from '../module/user/dto/request/user.js';
import {validateRequest} from "#src/middleware/validationMiddleware.js";
import {UserController} from '#src/module/user/controller/UserController.js';


router.post('/register', validateRequest(UserRegisterDTO), UserController.register);
router.post('/login', validateRequest(UserLoginDTO), UserController.login);

export default router;